<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd

">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>招聘管理</title>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.min.js"/>"></script>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"src="<c:url value="/js/jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"/>"></script>
<link rel="stylesheet" type="text/css"href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/default/easyui.css"/>" />
<link rel="stylesheet" type="text/css"href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/icon.css"/>" />

<style type="text/css">
	.kontge{
		padding-right: 10px;
	}
</style>
	
</head>

<body>
	<script type="text/javascript">
	/*删除*/
	function radm_dlt(readmiId){
 		$.messager.confirm('确认', '您确定要删除吗？', function(v){
 			if(v){
 				$.post("hr_radm_form_dlt", {readmiId:readmiId}, function(){
					$('.radm_datagrid_table').datagrid('reload');
				});
 			}
			
		});
 	}
	/*操作图标*/
	var radm_Formatter = function(value,row,index){
		var del = "<a class='easyui-linkbutton cell_btn_del' onclick='radm_dlt(" + row.readmiId + ")'>删除</a>";
		return del; 
	}
	/* 操作图标*/
	$(".radm_datagrid_table").datagrid({onLoadSuccess: function(){
		$(".cell_btn_del").linkbutton({height:18,plain:true});
	}});
	
	
	
	
	
		$(function() {
			/* 点击添加进入添加面板 */
			$(".add2").linkbutton({onClick : function() {
				$(".trainhomepage2").panel({href:"hr_radm_add"});
			}});
		});
	</script>
	<div class="easyui-panel trainhomepage2"  data-options="fit:true,border:false">
		<!-- 按钮 -->
		<div id="bt_radm">
			<a id="insert" class="easyui-linkbutton add2" data-options="iconCls:'icon-add',text:'新增',width:80"></a>
			<span class="kontge"></span>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-print'"></a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-reload'"></a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-print'"></a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-reload'"></a>
	
			<a class="easyui-textbox" data-options="label:'搜索文本',width:200,labelWidth:60"></a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-search',text:'搜索'"></a>
		</div>
		
		<!-- 数据表 -->
		<table class="easyui-datagrid radm_datagrid_table" data-options="
			fit:true,
			singleSelect:true,
			nowrap:true,
			toolbar:'#bt1',
			rownumbers:true,
			url:'hr_radm_find',
			<!-- 分页 -->
			pagination:true,
			<!-- ulr: -->
			pageSize:5,
			pageList:[5,10,15]
		">
			<thead>
				<tr>
	
<!--
编号
招聘计划
姓名
职位
面试状态
培训状态
招聘结果
当前阶段
-->
					<th data-options="field:'readmiId',width:60">电键</th>
					<th data-options="field:'recplanId',width:160, 
					formatter: function(value,row,index){
							return new Object(row['recruitplan']).recplanId;
						} ">招聘计划</th>
					    
					<th data-options="field:'readmiName',width:60">姓名</th>
					<th data-options="field:'position',width:60,	
					        formatter: function(value,row,index){
							return new Object(row['position']).positionId;
						} ">职位</th>
	<!-- 				<th data-options="field:'interviewstate',width:60">面试状态</th>
					<th data-options="field:'readmiState',width:60">培训状态</th> -->
					<th data-options="field:'readmiResult',width:160">招聘结果</th>
					<th data-options="field:'operation',width:200,formatter:radm_Formatter"></th>
				</tr>
			</thead>
			<tbody>
				
				
			</tbody>
		</table>
	</div>
</body>
</html>
